namespace AdminApiTemplate.Services.AdminUser
{
    public class CachedAdminUserDto
    {
        public long AUID { get; set; } = 0;

        public string ChineseName { get; set; }

        public string EnglishName { get; set; }
        /// <summary>
        /// 1是BM 2是BD
        /// </summary>
        public int UserType { get; set; }

        public List<MenuItem> Menus { get; set; }

        public List<string> Permissions { get; set; }
        /// <summary>
        /// 上级管理的下级
        /// </summary>
        public List<long> UnderAUIDManages { get; set; }

        /// <summary>
        /// 企业微信
        /// </summary>
        public string WorkWx { get; set; }
    }

    public class MenuItem
    {
        public string Id { get; set; }

        public string DisplayText { get; set; }

        public string Icon { get; set; }

        public string Url { get; set; }

        public string Code { get; set; }

        public List<MenuItem> Children { get; set; }
    }
}
